home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_goodkid.cog < prev    next >
Text File  |  1999-11-15  |  918b  |  47 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_GoodKid.cog
  4. #
  5. #
  6. # [TRM]
  7. #
  8. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13.     message     activated
  14.     
  15.     thing       player      local
  16.     thing       t_GoodKid
  17.     
  18.     sound       snd_Line=tm06j01.wav        local
  19.  
  20.     int         playing=0          local
  21.  
  22. end
  23.  
  24. # ========================================================================================
  25.  
  26. code
  27.  
  28. activated:
  29.  
  30.     player = GetLocalPlayerThing();
  31.     Sleep(0.1);
  32.     
  33.     if((GetSenderRef() == t_GoodKid) && (playing == 0))
  34.     {
  35.         playing = 1;
  36.         PlayVoice(player, snd_Line, 1.0, 1);
  37.         Sleep(0.25);
  38.         playing = 0;
  39.     }
  40.         
  41.     return;
  42.  
  43. # ========================================================================================
  44.  
  45. end
  46.  
  47.